package org.wu.framework.log.platform.infrastructure.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableIndex;
import org.wu.framework.core.stereotype.LayerField;
import org.wu.framework.core.stereotype.LayerField.LayerFieldType;
import org.wu.framework.lazy.orm.core.stereotype.LazyTable;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableField;
import org.wu.framework.lazy.orm.core.stereotype.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import java.lang.String;
import java.lang.Long;
/**
 * describe 运行日志 
 *
 * @author Jia wei Wu
 * @date 2024/03/24 01:02 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity 
 **/
@Data
@Accessors(chain = true)
@LazyTable(tableName = "run_log",comment = "运行日志")
@Schema(title = "run_log",description = "运行日志")
public class RunLogDO {


    /**
     * 
     * 
     */
    @Schema(description ="",name ="createTime",example = "")
    @LazyTableField(name="create_time",comment="",defaultValue="CURRENT_TIMESTAMP",upsertStrategy = LazyFieldStrategy.NEVER,extra="")
    private LocalDateTime createTime;

    /**
     * 
     * 描述
     */
    @Schema(description ="描述",name ="description",example = "")
    @LazyTableField(name="description",comment="描述",columnType="varchar(255)")
    private String description;

    /**
     * 
     * id
     */
    @Schema(description ="id",name ="id",example = "")
    @LazyTableFieldId(name="id",comment="id")
    private Long id;

    /**
     * 
     * 操作系统
     */
    @Schema(description ="操作系统",name ="os",example = "")
    @LazyTableField(name="os",comment="操作系统",columnType="varchar(255)")
    private String os;

    /**
     * 
     * 类型（异常、警告、信息）
     */
    @Schema(description ="类型（异常、警告、信息）",name ="type",example = "")
    @LazyTableField(name="type",comment="类型（异常、警告、信息）",columnType="varchar(255)")
    private String type;

    /**
     * 
     * 
     */
    @Schema(description ="",name ="updateTime",example = "")
    @LazyTableField(name="update_time",comment="",defaultValue="CURRENT_TIMESTAMP",upsertStrategy = LazyFieldStrategy.NEVER,extra=" on update CURRENT_TIMESTAMP")
    private LocalDateTime updateTime;

}